package com.bean;

import java.sql.Timestamp;


/**
 * ParkComment entity. @author MyEclipse Persistence Tools
 */

public class ParkComment  implements java.io.Serializable {


    // Fields    

     /** serialVersionUID*/
	private static final long serialVersionUID = -2076619407363756347L;
	private Long pcId;
     private Userinfo userinfo;
     private ParkOrder parkOrder;
     private String content;
     private Short opt1;
     private Short opt2;
     private Short opt3;
     private Short opt4;
     private Short opt5;
     private Timestamp createTime;
     private Timestamp updateTime;
     private Short status;
     private String statusName;


    // Constructors

    /** default constructor */
    public ParkComment() {
    }

	/** minimal constructor */
    public ParkComment(Short opt1, Short opt2, Short opt3, Short opt4, Short opt5, Timestamp createTime, Timestamp updateTime, Short status) {
        this.opt1 = opt1;
        this.opt2 = opt2;
        this.opt3 = opt3;
        this.opt4 = opt4;
        this.opt5 = opt5;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
    }
    
    /** full constructor */
    public ParkComment(Userinfo userinfo, ParkOrder parkOrder, String content, Short opt1, Short opt2, Short opt3, Short opt4, Short opt5, Timestamp createTime, Timestamp updateTime, Short status) {
        this.userinfo = userinfo;
        this.parkOrder = parkOrder;
        this.content = content;
        this.opt1 = opt1;
        this.opt2 = opt2;
        this.opt3 = opt3;
        this.opt4 = opt4;
        this.opt5 = opt5;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
    }

   
    // Property accessors

    public Long getPcId() {
        return this.pcId;
    }
    
    public void setPcId(Long pcId) {
        this.pcId = pcId;
    }

    public Userinfo getUserinfo() {
        return this.userinfo;
    }
    
    public void setUserinfo(Userinfo userinfo) {
        this.userinfo = userinfo;
    }

    public ParkOrder getParkOrder() {
        return this.parkOrder;
    }
    
    public void setParkOrder(ParkOrder parkOrder) {
        this.parkOrder = parkOrder;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public Short getOpt1() {
        return this.opt1;
    }
    
    public void setOpt1(Short opt1) {
        this.opt1 = opt1;
    }

    public Short getOpt2() {
        return this.opt2;
    }
    
    public void setOpt2(Short opt2) {
        this.opt2 = opt2;
    }

    public Short getOpt3() {
        return this.opt3;
    }
    
    public void setOpt3(Short opt3) {
        this.opt3 = opt3;
    }

    public Short getOpt4() {
        return this.opt4;
    }
    
    public void setOpt4(Short opt4) {
        this.opt4 = opt4;
    }

    public Short getOpt5() {
        return this.opt5;
    }
    
    public void setOpt5(Short opt5) {
        this.opt5 = opt5;
    }

    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Short getStatus() {
        return this.status;
    }
    
    public void setStatus(Short status) {
        this.status = status;
        	//状态1为正常0为锁定
        switch(status){
        case 1:
        	this.setStatusName("正常");
        	break;
        case 0:
        	this.setStatusName("锁定");
        	break;
        default:
        	this.setStatusName("未知");
        }
    }

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
   








}